<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>实验2_4计科2411张心雨0306241131</title>
		<style>
			div,span{
				width: 200px;
				height: 100px;
				background-color: cyan;
			}
		</style>
	</head>
	<body>
		<div class="c1">1</div>
		<div class="c1">2</div>
		<span class="c1">3</span>
		<span class="c1">2</span>
	</body>
</html>
<!--设想一样  因为div是块级元素独占一行，会应用长宽和背景色，而sapn是行内元素不独占一行，行内元素不支持长宽的属性，但背景色生效。-->
